package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.CollectionRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单信息
 * @author Administrator
 */
@RestController
@RequestMapping("/orders")
public class OrdersController extends BaseController {

    /**
     * 购物车添加收藏
     */
    @PostMapping("/shopAddCollection")
    public ResultModel shopAddCollection(@RequestBody CollectionRequest request) {
        return ordersService.shopAddCollection(request);
    }
}
